/*
 * City.java
 *
 * Created on March 2, 2007, 8:50 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ge.info.domain;

import ge.ktapestry.propertyselections.IComboItem;
import java.io.Serializable;

/**
 *
 * @author Administrator
 */
public class CityRegion implements IComboItem, Serializable
{
    
    /** Creates a new instance of City */
    private Integer regionID;
    private String regionName;
    private Integer cityID;
    public CityRegion()
    { 
    }

    public boolean equals(Object o)
    {
        if (!(o instanceof CityRegion))
        {
            return false;
        }        
        if ( o == null || ((CityRegion) o).getRegionID()==null)
            return regionID == null;

        if (regionID == null)
        {
            return false;
        }
        CityRegion cr = (CityRegion) o;
        return (this.getRegionID().equals(cr.getRegionID()));
    }    
    
    public String getUniqueID()
    {
        return String.valueOf(getRegionID());
    }

    public String getDisplayName()
    {
        return getRegionName();
    }

    public Integer getRegionID()
    {
        return regionID;
    }

    public void setRegionID(Integer regionID)
    {
        this.regionID = regionID;
    }

    public String getRegionName()
    {
        return regionName;
    }

    public void setRegionName(String regionName)
    {
        this.regionName = regionName;
    }

    public Integer getCityID()
    {
        return cityID;
    }

    public void setCityID(Integer cityID)
    {
        this.cityID = cityID;
    }
}
